package com.duqc.web.controller;

import com.duqc.web.service.ExportPdfService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;

/**
 * @ClassName ExportPdfController
 * @Description 导出PDF
 * @Author duqc
 * @Date 2023/5/31
 **/
@Slf4j
@RequiredArgsConstructor
@RestController
@RequestMapping("/export/pdf")
public class ExportPdfController {

    private final ExportPdfService exportPdfService;

    @GetMapping("/list")
    public void pdf(HttpServletResponse response) {
        this.exportPdfService.pdf(response);
    }

}
